package com.farm.state;

// 具体状态类
public class IdleState implements MachineState {
    @Override
    public void handle(AgriculturalMachineContext context, String machineName) {
        System.out.println(machineName +"农机处于空闲状态，等待任务分配");
        context.setState(this);
    }

    @Override
    public String toString() {
        return "空闲状态";
    }
}